@bobjanova said in Call a function based on its type?: without requiring people to tightly follow an XSD which can be a pain. XSDs are as tight or as loose as you write them to be. Filed under: But actually producing them is a PITA.